package cache


//序列化接口
type Serialization interface {
	SerializeObject (object *CacheEntry) ([]byte,error);
	DeserializeObject (value []byte,object *CacheEntry) (error);
}

func SerializeObject(object *CacheEntry,dataConvert Serialization) ([]byte,error) {
	return dataConvert.SerializeObject(object)
}
func DeserializeObject (value []byte,object *CacheEntry,dataConvert Serialization) (error){

	return dataConvert.DeserializeObject(value,object);
}